import QtQuick 2.0
import QtQuick.Controls 1.2

Calendar {
    id: calendario
    weekNumbersVisible: false
    anchors.left: parent.left
    anchors.leftMargin: UtilsJS.dp2px(10)
    anchors.right: parent.right
    anchors.rightMargin: UtilsJS.dp2px(10)
    height: width
    anchors.verticalCenter: parent.verticalCenter

    property var onClickedFunction: null;

    onClicked: {
        if(onClickedFunction) {
            onClickedFunction(date);
        }
    }
}

